Skip to content

mmc: bcm2835-mmc: Warn once when the inhibit bits stay set - #7813

Open
igorpecovnik wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
igorpecovnik:bcm2835-mmc-inhibit-warn-once
Open

igorpecovnik wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
igorpecovnik:bcm2835-mmc-inhibit-warn-once

Conversation

@igorpecovnik

Copy link
Copy Markdown

At boot, the first command on the Wi-Fi SDIO controller (fe300000.mmcnr) of a Pi 400 can find the inhibit bits still set. bcm2835_mmc_send_command() then prints "Controller never released inhibit bit(s)" with pr_err() on the console of every boot. The core retries the command, and the SDIO card is found about 85 ms later. Wi-Fi works.

This change prints the message once with dev_warn_once(). A later failure still shows once in the log. The command still fails with -EIO, and the register dump stays at debug level.

Tested on a Pi 400 with rpi-6.18.y (6.18.65): after boot the message shows once in dmesg -l warn and not in dmesg -l err. The SDIO card and wlan0 come up.

Carried in Armbian as armbian/build#11609.

At boot, the first command on the Wi-Fi SDIO controller of a Pi 400
can find the inhibit bits still set. The core retries the command, and
the SDIO card is found about 85 ms later. Wi-Fi works.

pr_err() puts this message on the console of every boot. Warn once at
warning level instead. A later failure still shows once in the log.

Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant